package org.example;

public class Main {
    public static int factorial(int n){
        if(n==0){
            return 1;
        }else{
            return n*factorial(n-1);
        }
    }
    public static void main(String[] args) {
        int ret = factorial(4);
        System.out.println(ret);
    }
}